<template>
  <div class="not-found">
    <div class="container">
      <h1>404</h1>
      <h2>页面未找到</h2>
      <p>抱歉，您访问的页面不存在或已被移除</p>
      <div class="actions">
        <router-link to="/" class="el-button el-button--primary">返回首页</router-link>
        <router-link to="/search" class="el-button">搜索内容</router-link>
      </div>
      <div class="illustration">
        <img src="@/assets/logo.png" alt="404 illustration" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'NotFound',
  metaInfo: {
    title: '页面未找到 - 企业门户'
  }
}
</script>

<style scoped>
.not-found {
  padding: 60px 0;
  min-height: calc(100vh - 300px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

h1 {
  font-size: 120px;
  color: var(--el-color-primary);
  margin: 0;
  line-height: 1;
  font-weight: 700;
}

h2 {
  font-size: 36px;
  margin: 20px 0;
}

p {
  font-size: 18px;
  color: #606266;
  margin-bottom: 30px;
}

.actions {
  margin-bottom: 50px;
}

.actions .el-button {
  margin: 0 10px;
  padding: 12px 25px;
  font-size: 16px;
}

.illustration {
  max-width: 500px;
  margin: 0 auto;
}

.illustration img {
  width: 100%;
  height: auto;
}
</style>
